package org.xfg.domain.active.service.quota;

import org.xfg.domain.active.model.entity.ActivityCountEntity;
import org.xfg.domain.active.model.entity.ActivityEntity;
import org.xfg.domain.active.model.entity.ActivitySkuEntity;
import org.xfg.domain.active.repository.IActivityRepository;
import org.xfg.domain.active.service.quota.rule.factory.DefaultActivityChainFactory;

/**
 * 抽奖活动的支撑类
 */
public class RaffleActivityAccountQuotaSupport {
    protected DefaultActivityChainFactory defaultActivityChainFactory;
    protected IActivityRepository activityRepository;

    public RaffleActivityAccountQuotaSupport(IActivityRepository activityRepository, DefaultActivityChainFactory defaultActivityChainFactory) {
        this.activityRepository = activityRepository;
        this.defaultActivityChainFactory = defaultActivityChainFactory;
    }

        public ActivitySkuEntity queryActivitySku(Long sku) {
        return activityRepository.queryActivitySku(sku);
    }

        public ActivityEntity queryRaffleActivityByActivityId(Long activityId) {
        return activityRepository.queryRaffleActivityByActivityId(activityId);
    }

        public ActivityCountEntity queryRaffleActivityCountByActivityCountId(Long activityCountId) {
        return activityRepository.queryRaffleActivityCountByActivityCountId(activityCountId);
    }

    }

